<?php

namespace app\common\model;

class OrderGoods extends BaseModel
{
    protected $table = 'order_goods';
    public function goods()
    {
        return $this->belongsTo('\app\common\model\Product','goods_id')->bind('image,name');
    }
    public function getGoodsImageAttr($value)
    {
        return addImagePrefix($value);
    }
}